package com.eclipse.e0112_java基础.异常;

import java.io.File;
import java.io.IOException;

public class Father {
	public void father_function() throws IOException,Exception {
		new File("a.txt");
	}
}
 
class Son extends Father {
	@Override
	public void father_function() throws IOException {
		new File("b.txt");
	}
}
 
class Test2 {
	public static void main(String[] args) {
		Father fs = new Son();
		try {
			fs.father_function();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
